package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.Likecomment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 点赞一级评论表 Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-27
 */
@Mapper
public interface LikecommentMapper extends BaseMapper<Likecomment> {

    int insertLikeComment(Likecomment likecomment);

    Integer getLikeNumByCommentId(int commentId);

    int updateCommentLike(@Param("commentId") int commentId, @Param("likeNum") int likeNum);

    int delLikeComment(Likecomment likecomment);

    Likecomment selectDataTf(Likecomment likecomment);
    Likecomment selectById(int commentId);
}
